<?php
    class View{
        //集合
        public $buffer = array();
        
        //注册变量
        public function assign($key,$val){
            $this -> buffer[$key] = $val;
        }
        
        //加载视图
        public function display($tpl_name){
            
            require  APPLIACTION_PATH 
            . MODULE
            . '/View/' . CONTROLLER . '/' . $tpl_name . '.html';
        }
    }
